// main.js
// Vue应用入口

// 创建Vue应用
const { createApp } = Vue;
const app = createApp({});

// 引入路由
import './router.js';

// 引入状态管理
import './store.js';

// 引入Element Plus
const { ElButton, ElInput, ElForm, ElFormItem, ElTable, ElTableColumn, ElTag, ElDialog, ElSelect, ElOption, ElCascader, ElAlert, ElDatePicker, ElIcon, ElPageHeader, ElEmpty } = ElementPlus;
app.use(ElementPlus, {
    components: [
        ElButton, ElInput, ElForm, ElFormItem, ElTable, ElTableColumn, ElTag, ElDialog,
        ElSelect, ElOption, ElCascader, ElAlert, ElDatePicker, ElIcon, ElPageHeader, ElEmpty
    ]
});

// 引入API模块
import './api/auth.js';
import './api/counselor.js';
import './api/student.js';

// 引入工具函数
import './utils/request.js';
import './utils/date-format.js';

// 引入视图组件
import './views/auth/Login.vue';
import './views/auth/CounselorLogin.vue';
import './views/auth/StudentLogin.vue';
import './views/counselor/Home.vue';
import './views/counselor/HolidayPublish.vue';
import './views/counselor/Report.vue';
import './views/student/Home.vue';
import './views/student/TravelQuery.vue';
import './views/student/RecordForm.vue';

// 挂载应用
app.mount('#app');
